package hlm;

public class HelloWorld {
	void printOnceHelloWorld(){
		System.out.println("Hello World");
	}
	
	void printHelloWorldTenTimesByBranch(){
		final int COUNT =10;
		for(int i=0;i<COUNT;i++){
			System.out.println("Hello World");
		}
	}
	
	void printHelloWorldThousandsTimesByBranch(){
		final int COUNT=1000;
		for(int j=0;j<COUNT;j++){
			System.out.println("Hello World");
		}
	}
	
	void printHelloWorldWithSerialNumber(){
		final int COUNT=100;
		for(int k=0;k<COUNT;k++){
			System.out.println((k+1)+":Hello World");
		}
	}
	
	void printHelloWorldWithOrderEveryFiveTimes(){
		final int COUNT=20;
		for(int i=0;i<COUNT;i++){
			if((i+1)%5==0)
			{
				System.out.println((i+1)+":Hello World");
				continue;
			}
			System.out.println("Hello World");
		}
	}
	
	public static void main(String[] args){
		HelloWorld helloWorld = new HelloWorld();
		helloWorld.printOnceHelloWorld();
		helloWorld.printHelloWorldTenTimesByBranch();
		helloWorld.printHelloWorldThousandsTimesByBranch();
		helloWorld.printHelloWorldWithSerialNumber();
		helloWorld.printHelloWorldWithOrderEveryFiveTimes();
	}
	
	
	
	
}
